package kr.co.hk.coupon;


import android.content.Intent;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;

public class ItemClick implements OnItemClickListener {
	Intent intent;
	View parentView;
	public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {
		switch(arg2){
		case 0:
			intent = new Intent(arg1.getContext(), ListOfInfo.class);
			intent.putExtra("url", "http://www.cocofun.co.kr/CouponList/AreaSubNormalList.asp?sltTownCode=1&sltMidCode=0&sltCategory1=1&sltCategory2=0");
			arg1.getContext().startActivity(intent);
			break;
		case 1:
			intent = new Intent(arg1.getContext(), ListOfInfo.class);
			intent.putExtra("url", "http://www.cocofun.co.kr/CouponList/AreaSubNormalList.asp?sltTownCode=1&sltMidCode=0&sltCategory1=2&sltCategory2=0");
			arg1.getContext().startActivity(intent);
			break;
		case 2:
			intent = new Intent(arg1.getContext(), ListOfInfo.class);
			intent.putExtra("url", "http://www.cocofun.co.kr/CouponList/AreaSubNormalList.asp?sltCategory1=3&sltTownCode=1&sltMidCode=0&sltSpotCode=0");
			arg1.getContext().startActivity(intent);
			break;
		case 3:
			intent = new Intent(arg1.getContext(), ListOfInfo.class);
			intent.putExtra("url", "http://www.cocofun.co.kr/CouponList/AreaSubNormalList.asp?sltTownCode=1&sltMidCode=0&sltCategory1=4&sltCategory2=0");
			arg1.getContext().startActivity(intent);
			break;
		case 4:
			intent = new Intent(arg1.getContext(), ListOfInfo.class);
			intent.putExtra("url", "http://www.cocofun.co.kr/CouponList/AreaSubNormalList.asp?sltCategory1=5&sltTownCode=1&sltMidCode=0&sltSpotCode=0");
			arg1.getContext().startActivity(intent);
			break;
		case 5:
			intent = new Intent(arg1.getContext(), ListOfInfo.class);
			intent.putExtra("url", "http://www.cocofun.co.kr/CouponList/AreaSubNormalList.asp?sltCategory1=6&sltTownCode=1&sltMidCode=0&sltSpotCode=0");
			arg1.getContext().startActivity(intent);
			break;
		case 6:
			intent = new Intent(arg1.getContext(), ListOfInfo.class);
			intent.putExtra("url", "http://www.cocofun.co.kr/CouponList/AreaSubNormalList.asp?sltCategory1=7&sltTownCode=1&sltMidCode=0&sltSpotCode=0");
			arg1.getContext().startActivity(intent);
			break;
		case 7:
			intent = new Intent(arg1.getContext(), ListOfInfo.class);
			intent.putExtra("url", "http://www.cocofun.co.kr/CouponList/AreaSubNormalList.asp?sltCategory1=8&sltTownCode=1&sltMidCode=0&sltSpotCode=0");
			arg1.getContext().startActivity(intent);
			break;
		case 8:
			intent = new Intent(arg1.getContext(), ListOfInfo.class);
			intent.putExtra("url", "http://www.cocofun.co.kr/CouponList/AreaSubNormalList.asp?sltCategory1=9&sltTownCode=1&sltMidCode=0&sltSpotCode=0");
			arg1.getContext().startActivity(intent);
			break;
		}
	}
}
